<template>
  <div class="container">
    <van-nav-bar
      title="发出的邀约"
      @click-left="onClickLeft"
      style="z-index: 1001"
      fixed
    >
    <van-icon name="arrow-left" slot="left" color="#333" size="0.6rem"/>
    </van-nav-bar>

    <div class="list">
      <div class="item">
        <span>邂逅宣言 </span>
        <span>在北京遇到爱情 </span>
      </div>

      <p class="line"></p>
      <div class="item">
        <span>邀约时间</span>
        <span>2021年8月20日 12:00</span>
      </div>
      <p class="line"></p>

      <div class="item">
        <span>状态</span>
        <span>待接受</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    onClickLeft(type) {
      this.$router.back(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 44px;
  box-sizing: border-box;
}

.grid {
  margin: 15px 0;
  display: flex;
  flex-direction: row;
  background-color: white;

  & > .item {
    display: flex;
    flex: 1;
    padding: 8px 0;
    text-align: center;
    flex-direction: column;
    & > span:first-child {
      color: black;
      font-size: 20px;
      margin-bottom: 5px;
      font-weight: bold;
      text-align: left;
    }

    & > span:last-child {
      color: gray;
      font-size: 16px;
    }
  }
}

.line {
  height: 1px;
  background-color: #e5e5e5;
}
.list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  padding: 5px 10px;
  background-color: white;

  & > .item {
    display: flex;
    padding: 8px 0;
    align-items: center;
    flex-direction: row;
    & > span:first-child {
      color: black;
      font-size: 16px;
      flex: 1;
    }

    & > span:last-child {
      color: gray;
      font-size: 16px;
    }
  }
}
</style>